home *** CD-ROM | disk | FTP | other *** search
/ Directorty Opus 5 - Magellan 2 / Opus 5 - Magellan 2.iso / Extras / DOPbt41 / 4 / DOCS / DIR-lha->lzx.txt next >
Text File  |  1996-06-13  |  4KB  |  105 lines

  1. ##
  2. ## $VER: convert LHA to LZX--dir.txt (and vice versa) 1.0
  3. ##
  4.  
  5.  
  6. Well, it seems there is a new archiver on the world called LZX. Now
  7. would it not be nice to be able to convert an entire dir with LHA 
  8. archives to the new, and improved :-), LZX format from within OPUS 
  9. with a single mouse click ???
  10.  
  11.  
  12. This is how to do it:
  13.  
  14. Start the config editor (logical step isn't it ??)
  15.  
  16. choose a button/menu of your likes, and edit in the next lines:
  17.  
  18. ---------------------------------------
  19. NAME:       LHA->LZX-dir
  20.  
  21. AmigaDOS    rx dopus:modules/rexx/repack {s}
  22.  
  23. FLAGS:
  24.  
  25. CD Source
  26. Output Window
  27. Rescan Source
  28. ---------------------------------------
  29.  
  30. Exit the configeditor, and (if not excisting already) MAKEDIR in the
  31. dopus: directory, called modules (it SHOULD be there already...). Enter
  32. the dopus:modules/ directory, and MAKEDIR rexx  (your path should look
  33. like DOPUS:MODULES/REXX/ !!)
  34.  
  35. You could copy the scripts to the assigned rexx: directory, but I have
  36. noticed that dir tends to grow HUGE as you start using different
  37. programms with an arexx port...
  38.  
  39. Copy the files REPACK.REXX AND REPACK1.REXX from the rexx/ directory in
  40. this archive to DOPUS:MODULES/REXX directory...
  41.  
  42. IMPORTANT !!! Please also edit the Repack-script, which is (c) by
  43. 'Mat Bettinson of the Plot Hatching Factory '95', you will have to adapt
  44. a couple of thing in it. Since it was NOT my idea to create the script I
  45. WILL NOT DO IT FOR YOU !!
  46.  
  47. Please also read the enclosed repack doc file.
  48.  
  49. Now activate any DIR in which LHA archives are, click on the just 
  50. created button (menu ?), and voila... All LHA archives in the dir will
  51. be converted to the new LZX format !
  52.  
  53. NOTE1... The original (lha) archive will be deleted by the script,
  54. UNLESS the lha is smaller than the LZX (rare, but it does happen...)
  55.  
  56. NOTE2... AGAIN,  READ THE ORIGINAL REPACK DOCS !! THEY CONTAIN IMPORTANT
  57. INFORMATION !!
  58.                       
  59. -------
  60.  
  61. Since I like to experiment a lot I have rewritten the script (sorry Mat
  62. Bettinson of the Plot Hatching Factory '95' :-)) ) so it can also be 
  63. reverted, i.e. you can repack an entire directory containing LZX 
  64. files back to LHA... From the above config only one thing changes, 
  65. the button-text should look like this:
  66.  
  67. ---
  68. AmigaDOS    rx rexx:repack1 {s} FORCELHA
  69. ---
  70.  
  71. Flags the same, everything the same actually. The FORCELHA switch means
  72. that even if the (new) LHA archive is bigger than the (old) LZX archive
  73. (usualy the case...), the LHA archive will be written, and te LZX 
  74. archive will be deleted..
  75.  
  76.  
  77. Let me know what you think, and if you use it (and why not...?).
  78.  
  79.  
  80.        ·······························································
  81.        .#.####..............................................####..####
  82.        ##.#..#........._______....______......_______.......#..#..#...
  83.        .#.####......../      /....|     \.....\      .......####..####
  84.        .#....#......./______/.....|______|.....\      .........#.....#
  85.        .#.####....../      /......|      |......\      .....####..####
  86.        ............/....../.......|_____/........\_______.............
  87.        ...............................................................
  88.        .............ABC, THE CUTEST LAMER IN THE BUSINESS.............
  89.        ...............................................................
  90.        ........................... .xXXx. ............................
  91.        ........................... |o'`o| ............................
  92.        .............-----------.oOO-(__)-OOo.-----------..............
  93.        ...______ ..:                                    :...______....
  94.        . /      \..:      NIELS van \X/illigenburg      :../      \...
  95.        ..| O  O |..:          Millingenhof 123          :..| O  O |...
  96.        ..|  /\  |..:       NL-1106 KH   AMSTERDAM       :..|  /\  |...
  97.        ..| \__/ |..:             Netherlands            :..| \__/ |...
  98.        ...\____/...:               Europe               :...\____/....
  99.        ............:         +31-(0)20-6979932          :.............
  100.        ............:        FIDO -> 2:280/464.17        :.............
  101.        ............:             -> niels@aobh.xs4all.nl:.............
  102.        ............`------------------------------------'.............
  103.        ...............................................................
  104.        ·······························································
  105.